import React from 'react';
import ReactDom from 'react-dom';

import {Provider} from 'react-redux';
import {createStore} from 'redux';
import updater from './updater';

import uuid from 'uuid';
import UiList from './UiList';

let list = [
    {id: uuid(), name: 'aaaaa1'},
    {id: uuid(), name: 'aaaaa2'},
    {id: uuid(), name: 'aaaaa3'},
    {id: uuid(), name: 'aaaaa4'}
];

const store = createStore(updater,{list});

ReactDom.render(
    <Provider store={store}>
        <UiList></UiList>
    </Provider>
,document.querySelector('#app'));
